<?php

header("Content-Type: image/jpeg");

imagejpeg($this->img);
imagedestroy($this->img);